import Icon from "@ant-design/icons";

const videoSvg = () => (
  <svg
    t="1634014342771"
    class="icon"
    viewBox="0 0 1024 1024"
    version="1.1"
    xmlns="http://www.w3.org/2000/svg"
    p-id="3402"
    width="32"
    height="32"
  >
    <path
      d="M450.048 315.904L305.152 144.896H140.8l144.896 170.496h164.352z m427.008 0l-145.408-171.008h-164.352l144.896 170.496h164.864z m-213.504 0l-144.896-171.008H354.304l144.896 170.496h164.352z m274.944-171.008h-157.696l144.896 170.496h76.8V208.896a62.7712 62.7712 0 0 0-64-64z m-846.848 0h-6.144A62.7712 62.7712 0 0 0 21.504 208.896v106.496h215.552L91.648 144.896zM21.504 866.304a62.7712 62.7712 0 0 0 64 64h853.504a62.7712 62.7712 0 0 0 64-64V358.4H21.504z"
      fill="#222222"
      p-id="3403"
    ></path>
    <path
      d="M386.56 532.48c0-27.136 22.016-39.424 47.616-39.424a53.7088 53.7088 0 0 1 25.6 6.144l180.736 104.96a44.9536 44.9536 0 0 1 0 79.36l-180.736 104.448a47.5136 47.5136 0 0 1-25.6 6.144c-25.6 0-47.616-12.8-47.616-39.424z"
      fill="#00B65F"
      p-id="3404"
    ></path>
  </svg>
);
const textSvg = () => (
  <svg
    t="1634016047098"
    class="icon"
    viewBox="0 0 1039 1024"
    version="1.1"
    xmlns="http://www.w3.org/2000/svg"
    p-id="5156"
    width="32"
    height="32"
  >
    <path
      d="M507.178908 944.934087H289.265537c-84.851224 0-154.274953-69.423729-154.274953-154.274953v-539.962336c0-84.851224 69.423729-154.274953 154.274953-154.274952h462.824858c84.851224 0 154.274953 69.423729 154.274953 154.274952V678.809793c0 21.212806-17.355932 38.568738-38.568738 38.568738s-38.568738-17.355932-38.568738-38.568738v-428.112995c0-42.425612-34.711864-77.137476-77.137477-77.137476h-462.824858c-42.425612 0-77.137476 34.711864-77.137477 77.137476v539.962336c0 42.425612 34.711864 77.137476 77.137477 77.137476h217.913371c21.212806 0 38.568738 17.355932 38.568738 38.568738s-17.355932 38.568738-38.568738 38.568739z"
      fill="#388CEB"
      p-id="5157"
    ></path>
    <path
      d="M713.521657 347.118644h-385.687382c-21.212806 0-38.568738-17.355932-38.568738-38.568738s17.355932-38.568738 38.568738-38.568738h385.687382c21.212806 0 38.568738 17.355932 38.568738 38.568738s-17.355932 38.568738-38.568738 38.568738zM713.521657 501.393597h-385.687382c-21.212806 0-38.568738-17.355932-38.568738-38.568738s17.355932-38.568738 38.568738-38.568738h385.687382c21.212806 0 38.568738 17.355932 38.568738 38.568738s-17.355932 38.568738-38.568738 38.568738z"
      fill="#E78E00"
      p-id="5158"
    ></path>
    <path
      d="M690.380414 925.649718h-15.427495c-63.638418 0-115.706215-52.067797-115.706215-115.706215v-115.706215c0-63.638418 52.067797-115.706215 115.706215-115.706215h115.706215c63.638418 0 115.706215 52.067797 115.706214 115.706215v15.427495l-215.984934 215.984935z m-15.427495-269.981168c-21.212806 0-38.568738 17.355932-38.568738 38.568738v115.706215c0 17.355932 9.642185 30.854991 25.06968 36.640301l165.845574-165.845574c-5.785311-15.427495-19.284369-25.06968-36.640301-25.06968h-115.706215z"
      fill="#388CEB"
      p-id="5159"
    ></path>
  </svg>
);
const examSvg = () => (
  <svg
    t="1634017644275"
    class="icon"
    viewBox="0 0 1024 1024"
    version="1.1"
    xmlns="http://www.w3.org/2000/svg"
    p-id="5661"
    width="32"
    height="32"
  >
    <path
      d="M0 0m219.428571 0l585.142858 0q219.428571 0 219.428571 219.428571l0 585.142858q0 219.428571-219.428571 219.428571l-585.142858 0q-219.428571 0-219.428571-219.428571l0-585.142858q0-219.428571 219.428571-219.428571Z"
      fill="#15BC84"
      p-id="5662"
    ></path>
    <path
      d="M582.948571 611.638857H392.356571c-14.701714 0-27.318857-11.52-27.593142-26.221714-0.274286-14.994286 11.794286-27.209143 24.484571-27.209143h190.555429c16.932571 0 29.549714 11.52 29.805714 26.221714a26.715429 26.715429 0 0 1-26.697143 27.209143m57.892571 89.6H392.374857c-14.701714 0-27.318857-11.52-27.593143-26.221714a26.697143 26.697143 0 0 1 26.697143-27.209143h248.448c14.72 0 27.337143 11.52 27.611429 26.203429a26.697143 26.697143 0 0 1-26.715429 27.227428m55.588572-434.102857H335.908571a42.605714 42.605714 0 0 0-42.368 42.587429v404.553142a42.605714 42.605714 0 0 0 42.368 42.605715h358.217143a44.525714 44.525714 0 0 0 44.525715-44.653715l-0.274286-106.496 0.384-295.954285a42.477714 42.477714 0 0 0-42.368-42.642286"
      fill="#FFFFFF"
      p-id="5663"
    ></path>
    <path
      d="M399.433143 356.315429h-21.961143c-2.925714 0-5.101714 1.024-6.491429 3.072-1.389714 2.048-2.084571 5.705143-2.084571 10.971428 0 5.577143 0.512 9.234286 1.536 10.989714 1.024 1.755429 2.925714 2.633143 5.705143 2.633143h10.770286v118.601143c0 5.705143 4.608 8.576 13.842285 8.576 9.216 0 13.824-2.870857 13.824-8.576v-134.838857c0-7.625143-5.046857-11.428571-15.140571-11.428571"
      fill="#15BC84"
      p-id="5664"
    ></path>
    <path
      d="M513.846857 450.980571a69.467429 69.467429 0 0 1-4.278857 16.237715 31.963429 31.963429 0 0 1-7.917714 11.757714 17.133714 17.133714 0 0 1-11.958857 4.498286 17.28 17.28 0 0 1-12.068572-4.388572 33.024 33.024 0 0 1-7.917714-11.428571 62.427429 62.427429 0 0 1-4.388572-16.128 128.182857 128.182857 0 0 1-1.316571-18.340572c0-6.582857 0.457143-13.147429 1.426286-19.657142 0.950857-6.509714 2.450286-12.416 4.498285-17.682286 2.048-5.266286 4.681143-9.563429 7.899429-12.854857a15.945143 15.945143 0 0 1 11.867429-4.937143c4.681143 0 8.630857 1.645714 11.867428 4.937143 3.218286 3.291429 5.851429 7.588571 7.899429 12.854857 2.048 5.266286 3.510857 11.154286 4.388571 17.682286 0.877714 6.509714 1.316571 12.909714 1.316572 19.2 0 6.162286-0.438857 12.251429-1.316572 18.249142m17.133714-73.691428a50.304 50.304 0 0 0-16.585142-17.353143c-6.802286-4.315429-15.049143-6.473143-24.704-6.473143-9.508571 0-17.682286 2.157714-24.502858 6.473143a49.974857 49.974857 0 0 0-16.566857 17.462857 83.931429 83.931429 0 0 0-9.325714 25.472 150.893714 150.893714 0 0 0-2.980571 30.317714c0 10.532571 1.060571 20.534857 3.2 29.988572 2.121143 9.435429 5.376 17.700571 9.764571 24.795428 4.388571 7.113143 9.910857 12.745143 16.585143 16.914286 6.656 4.169143 14.518857 6.272 23.606857 6.272 9.069714 0 16.987429-2.139429 23.716571-6.381714a51.931429 51.931429 0 0 0 16.694858-17.133714c4.388571-7.168 7.68-15.506286 9.874285-25.033143 2.194286-9.508571 3.291429-19.547429 3.291429-30.08a153.6 153.6 0 0 0-2.852572-30.098286 80.786286 80.786286 0 0 0-9.216-25.142857"
      fill="#15BC84"
      p-id="5665"
    ></path>
    <path
      d="M638.171429 450.980571a69.467429 69.467429 0 0 1-4.297143 16.237715 31.963429 31.963429 0 0 1-7.899429 11.757714 17.133714 17.133714 0 0 1-11.977143 4.498286 17.28 17.28 0 0 1-12.068571-4.388572 33.024 33.024 0 0 1-7.917714-11.428571 62.427429 62.427429 0 0 1-4.388572-16.128 128.182857 128.182857 0 0 1-1.316571-18.340572c0-6.582857 0.457143-13.147429 1.426285-19.657142 0.950857-6.509714 2.450286-12.416 4.498286-17.682286 2.048-5.266286 4.681143-9.563429 7.899429-12.854857a15.945143 15.945143 0 0 1 11.867428-4.937143c4.681143 0 8.630857 1.645714 11.867429 4.937143 3.218286 3.291429 5.851429 7.588571 7.899428 12.854857 2.048 5.266286 3.510857 11.154286 4.388572 17.682286 0.877714 6.509714 1.316571 12.909714 1.316571 19.2 0 6.162286-0.438857 12.251429-1.316571 18.249142m26.349714-48.548571a80.786286 80.786286 0 0 0-9.216-25.142857 50.304 50.304 0 0 0-16.585143-17.353143c-6.802286-4.315429-15.049143-6.473143-24.704-6.473143-9.508571 0-17.682286 2.157714-24.502857 6.473143a49.974857 49.974857 0 0 0-16.566857 17.462857 83.931429 83.931429 0 0 0-9.325714 25.472 150.893714 150.893714 0 0 0-2.980572 30.317714c0 10.532571 1.060571 20.534857 3.2 29.988572 2.121143 9.435429 5.376 17.700571 9.764572 24.795428 4.388571 7.113143 9.910857 12.745143 16.585143 16.914286 6.656 4.169143 14.518857 6.272 23.606857 6.272 9.069714 0 16.987429-2.139429 23.716571-6.381714a51.931429 51.931429 0 0 0 16.694857-17.133714c4.388571-7.168 7.68-15.506286 9.874286-25.033143 2.194286-9.508571 3.291429-19.547429 3.291429-30.08a153.6 153.6 0 0 0-2.852572-30.098286"
      fill="#15BC84"
      p-id="5666"
    ></path>
  </svg>
);

const VideoIcon = (props) => <Icon component={videoSvg} {...props} />;
const TextIcon = (props) => <Icon component={textSvg} {...props} />;
const ExamIcon = (props) => <Icon component={examSvg} {...props} />;

const Video = <VideoIcon />;
const text = <TextIcon />;
const exam = <ExamIcon />;

export const sectionTypeIcon = {
  文本: text,
  视频: Video,
  试题: exam,
};
